#ifndef CONFIG_H
#define CONFIG_H



#define PORT_UDP 8888
#define PORT_TCP 12580

typedef enum
{
    LOGIN,
    LOGOUT,
    SINGLE,
    GROUP,
    POST,
    GET,
    SERVER,
    LIST,
    DELETE,
}Cmd;

typedef struct
{
    Cmd cmd;
    char data[1024];
}Package_t;

typedef struct
{
    char ip[20];
    int port;
    int fd;
}User_t;

#define welog_debug(fmt, ...) printf("[%s][%d]:" fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__)


#endif
